#ifndef __TIMER_H_
#define __TIMER_H_


#include "empty.h"


typedef enum {
    STATE_OPEN_LOOP = 0,
    STATE_CLOSED_LOOP = 1,
    STATE_PID_MODE = 2,
    STATE_OTHER = 3
} TimerState;


typedef struct {
    TimerState state;  // 使用枚举类型
	uint8_t mpu_flag;
    int count;
	int ms_count;
	int sys_ms_count;
	int second
}	Timer_typeDef;


void SysTick_Init(void);
void delay_ms(unsigned int ms);
void delay_ms_timer(unsigned int ms);
void delay_ms_nonblocking(unsigned int ms);

#endif 